package com.amigo.online.provider.compare.task;

import java.util.List;
import java.util.concurrent.Callable;

import org.springframework.beans.factory.annotation.Autowired;

import com.amigo.online.provider.common.entity.VideoMongoInfo;
import com.amigo.online.provider.sync.handle.data.mongo.service.VideoMongoService;

public class MongoVideoTask extends AbstractTask implements Callable<List<VideoMongoInfo>> {

    public MongoVideoTask(int startId, int endId) {
        super(endId, endId);
    }

    @Autowired
    VideoMongoService videoMongoService;

    @Override
    public List<VideoMongoInfo> call() throws Exception {
        return videoMongoService.listVideoByStartIdAndEndId(startId, endId);
    }

}
